package org.dromara.system.service;

import org.dromara.system.domain.dto.WbCompanyBlacklistCountProvinceDTO;
import org.dromara.system.domain.dto.WbProvinceDTO;
import org.dromara.system.domain.vo.WbProvinceVo;
import org.dromara.system.domain.bo.WbProvinceBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 省份Service接口
 *
 * @author Lion Li
 * @date 2024-04-12
 */
public interface IWbProvinceService {

    /**
     *查询省份有多少个黑名单
     */
    List<WbCompanyBlacklistCountProvinceDTO> provinceBlacklistNum(String companyName);

    /**
     * 提供省份名查id
     */
    Long queryByName(String name);

    /**
     * 查询省份
     */
    WbProvinceVo queryById(Long provinceId);

    /**
     * 查询省份列表
     */
    TableDataInfo<WbProvinceVo> queryPageList(WbProvinceBo bo, PageQuery pageQuery);

    /**
     * 查询省份列表
     */
    List<WbProvinceVo> queryList(WbProvinceBo bo);

    /**
     * 新增省份
     */
    Boolean insertByBo(WbProvinceBo bo);

    /**
     * 修改省份
     */
    Boolean updateByBo(WbProvinceBo bo);

    /**
     * 校验并批量删除省份信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    Integer querySonNum(Collection<Long> provinceIds);


    TableDataInfo<WbProvinceVo> queryListZYQ(WbProvinceDTO dto, PageQuery pageQuery);
}
